class Solution {
public:
    vector<int> numOfBurgers(int tomatoSlices, int cheeseSlices) {
        int double_x = tomatoSlices - 2 * cheeseSlices;
        vector<int> vec;
        if (double_x % 2 == 0 && double_x >= 0 & cheeseSlices >= double_x / 2)
        {
            vec.push_back(double_x / 2);
            vec.push_back(cheeseSlices - double_x / 2);

        }
        return vec;

    }
};